const tips = {
    toast: async function (text?: string, duration?: number, success?: 'success' | 'loading' | 'error' | 'none') {
        await uni.showToast({
            title: text || "出错啦",
            icon: success ? success : "none",
            duration: duration || 2000,
            // mask: true
        });
    },
};

export default tips;
